jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 21 Jan 2026 21:57:02 +0000 (10:57 +1300)
committerVladimir Petko <vladimir.petko@canonical.com>
Wed, 21 Jan 2026 21:57:02 +0000 (10:57 +1300)
commit4b051ee4e3322fc6ef1ad36b431aca68ff678e6c
tree6b341edc222a6080fd229b9f0731117b63990ddd
parent32c41a17f92c1f69f138d1f3853cbeedcf24e488
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk